
%{--<g:remoteLink controller="listing" action="showRecentBids" update="bidList" params="[myListName:'${listingInstance.listName}']"></g:remoteLink>--}%
<div id="bidListFailure"/>

<div id="bidList">
    <g:set var="bidEntity" value="${message(code: 'bids.label', default: 'Bids')}" />
    <g:set var="bidDescription" value="${message(code: 'bid.recent.label', default: 'Recent')}" />
    <table>
        <h1><g:message code="show.descriptive.label" args="[bidDescription, bidEntity]" /></h1>
        <tbody>
            <tr class="prop">
                <th valign="top" class="name"><g:message code="bid.amount.label" default="Bid Amount" /></th>
                <th valign="top" class="name"><g:message code="bid.date.label" default="Bid Date Time" /></th>
                <th valign="top" class="name"><g:message code="bid.buyer.emailAddress.label" default="Buyer" /></th>
            </tr>
            <g:each in="${recentBidList}" status="i" var="bidInstance">
                <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                    <td valign="top" class="value"><g:formatNumber number="${bidInstance.amount}" type="currency" currencyCode="USD" /></td>
                    <td valign="top" class="value">${fieldValue(bean: bidInstance, field: "date")}</td>
                    <td><g:link controller="customer" action="show" id="${bidInstance.buyer.id}">${fieldValue(bean: bidInstance, field: "buyer.emailAddress")}</g:link></td>
               </tr>
            </g:each>
        </tbody>
    </table>
</div>
